iT邦幫忙

2025 iThome 鐵人賽

DAY 27
0
自我挑戰組

攔截記憶碼:每日一小時記錄技術學習系列 第 27

Day 26 - Claude Skills:讓 AI 寫報告、改 PDF、做簡報都成真

  • 分享至 

  • xImage
  •  

攔截源頭

  • 發現管道:Simon Willison 的部落格文章(Claude Skills
  • 攔截原因:最近在研究 Claude 的 Code Interpreter,沒想到 Simon 抓到 Claude 裡藏了一個神祕資料夾:/mnt/skills/public/。打開一看,裡面全是「技能模組」—— 專門處理 docx、pdf、pptx、xlsx 的內建腳本。也就是說,Claude 現在真的能自己「開 Word、改 PDF、寫 Excel」了

技術初探

  • 定義:Skills are the internal scripts and prompts that give Claude the ability to create and manipulate documents like Word, PDF, PowerPoint, and Excel.
  • 已公開的技能 (Skills):
    • docx — Word 文件生成與編輯
    • xlsx — Excel 資料表操作
    • pdf — PDF 處理與表單填寫
    • pptx — PowerPoint 簡報生成

每個 skill 其實都對應到一組 Python 腳本與 prompt。
像 pdf/scripts/fill_fillable_fields.py 會使用 PyPDF 自動填 PDF 表單欄位,
docx/scripts/add_text.py 則能幫你把文字段落插入 Word 檔中。

這些功能全部都埋在 Claude 的執行環境中(container 內),
而且官方似乎是刻意讓開發者能「看到並使用」這些技能。

Skills 實戰

自動填 PDF 表單

你可以直接讓 Claude 幫你處理 PDF:

「幫我把這份 PDF 表單填上我的資料,名字是 John,日期是 2025/10/12。」

Claude 實際上會呼叫內部 skill:

pdf/scripts/fill_fillable_fields.py

生成 Word 文件

「幫我產生一份 AI 工具比較報告,存成 docx。」

docx/scripts/add_paragraphs.py
docx/scripts/save_document.py

並回傳 .docx 檔案可供下載。

Excel 自動整理資料

「把這份 JSON 匯出成 Excel,並幫我加上平均欄位。」

Claude 實際上會用 Pandas 產生 DataFrame,再用 xlsx/scripts/export.py 儲存。

自動生成簡報

Claude 會呼叫 PowerPoint skill,幫你生成 .pptx,甚至加標題與文字樣式。

如何取得 Claude Skills

Simon Willison 已經把 Claude Skills 的完整 zip 檔放上 GitHub:simonw/claude-skills

下載後可以直接瀏覽 Claude 的技能實作內容:

git clone https://github.com/simonw/claude-skills.git

每個資料夾都有 Claude 官方撰寫的 Python 腳本,展示它如何用現成函式庫(如 pypdf, python-docx, openpyxl, python-pptx)完成文件處理。

記憶碼摘要

技術:Claude Skills  
分類:內建 AI 工具模組 / 文件生成技能  
難度:⭐⭐☆☆☆(1–5 顆星)  
實用度:⭐⭐⭐⭐⭐(1–5 顆星)  
一句話:Claude 現在真的能打開 Word、改 PDF、算 Excel、做簡報。  
關鍵指令:git clone https://github.com/simonw/claude-skills.git  
適用情境:自動生成報告、批次文件處理、文件格式轉換。

結語

Claude Skills 的出現,等於讓 Claude 的「Code Interpreter」正式進化成「Office AI 工具包」。
它不只是會寫程式,而是能處理所有文件格式。
這讓 Claude 從「工程師的助理」變成「知識工作者的共創夥伴」。


上一篇
Day 25 - Claude Code Plugins — 讓 Claude 真正動手
下一篇
Day 27 - mcp-containers:讓 Claude Plugins 像 Docker 一樣隨開隨用
系列文
攔截記憶碼:每日一小時記錄技術學習28
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言